package WrittenTest;

import java.util.*;

public class test27 {
    // 取一个数字的每一位，如是是奇数变为 1，偶数则为零
    // 算法原理：枚举
    public static void main(String[] args) {
        List<Integer> list = new ArrayList<>();
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        // 取每一位并进行修改
        while (n != 0) {
            int tmp = n % 10;
            if (tmp % 2 != 0) {
                list.add(1);
            } else {
                list.add(0);
            }
            n /= 10;
        }
        // 处理前导零
        for (int i = list.size() - 1; i >= 0; i--) {
            if (list.get(i) == 0 && list.size() != 1) {
                list.remove(i);
            } else {
                break;
            }
        }
        // 逆序打印
        for (int i = list.size() - 1; i >= 0; i--) {
            System.out.print(list.get(i));
        }
    }
}
